
package com.joysuch.wwyt.datadump.biz.convertor;

import cn.zlg.common.datadump.annotation.DataDumpField;
import cn.zlg.common.datadump.convertor.FieldValueConvert;
import com.joysuch.wwyt.core.enums.BaseIdCardTypes;
import com.joysuch.wwyt.core.enums.UserRoleTypes;
import org.springframework.stereotype.Component;

@Component
public class ExportBaseUserIdCardTypeConvertor implements FieldValueConvert<Long, String> {


    @Override
    public String convert(Object bean, Long value, DataDumpField dataField) {
        return value == null ? null : BaseIdCardTypes.getIdName(value.intValue());
    }

}
